<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        100-200质数求和 改
    </div>
    <script>
        var res = 0 ;
        for ( var i = 100 ; i <= 200 ; i ++ ) {
            var flag = true ;
            var a = i ;
            for ( var j = 2 ; j < i ; j ++ ) {
                if ( a % j == 0 ) {
                    flag = false ;
                    break;
                }
            }
            if ( flag ) {
                console.log(i);
                res = res + i ;
            }
        }
        console.log(res);
    </script>
</body>
</html>